import { ApiProperty } from '@nestjs/swagger';
export class UserVo {
  // swagger 装饰器 设置字段描述和示例默认值
  @ApiProperty({ description: '用户id', example: 1 })
  id: number;

  @ApiProperty({ description: '用户名称', example: 'user_小明' })
  username: string;

  @ApiProperty({ description: '用户手机号', example: '17633636873' })
  mobile: string;

  @ApiProperty({ description: '用户邮箱', example: '17633636873@qq.com' })
  email: string;

  @ApiProperty({ description: '启用状态', example: 1 })
  status: number;

  @ApiProperty({ description: '是否超级管理员', example: true })
  is_super: boolean;

  @ApiProperty({ description: '排序编号', example: 1 })
  sort: number;

  @ApiProperty({ description: '创建时间', example: '2025-02-11 15:17:02' })
  createdAt: Date;

  @ApiProperty({ description: '更新时间', example: '2025-02-11 15:17:02' })
  updatedAt: Date;
}
